package com.community.controller;

import com.community.base.BaseController;
import com.community.common.Const;
import com.community.common.ServerResponse;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 答案采纳服务层
 */
@RestController
@RequestMapping("/answerAdoptController/")
@CrossOrigin(origins = Const.REQUESTURL,maxAge = 3600,allowCredentials = "true")
public class AnswerAdoptController extends BaseController {

    /**
     * 新增采纳答案
     * @param paramMap
     * @param request
     * @return
     */
    @PostMapping("add.do")
    public ServerResponse<String> add(@RequestParam Map paramMap, HttpServletRequest request){
        return iAnswerAdoptService.add(paramMap,request);
    }

}
